#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "opencv2/opencv.hpp"
using namespace cv;

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void imgInit();
    void imgShow();

    //draw
    void MyEllipse(Mat img, double angle);
    void MyFilledCircle(Mat img, Point center);

private slots:
    void on_btnDraw_clicked();

private:
    Ui::MainWindow *ui;
    Mat myImg;
    QImage myQImg;
    int w;
};
#endif // MAINWINDOW_H
